package com.cskaoyan.catmall.model.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;


/**
 * 创建日期: 2022年1月7日15:06:24
 * author : XGQ
 * description: admin.config.mall商场配置参数
 * market_system表
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
public class MarketMallBo {

    @Min(value = -180,message = "经度不在-180°到180°之间")
    @Max(value = 180,message = "经度不在-180°到180°之间")
    private String market_mall_longitude;
    @Min(value = -90,message = "纬度不在-90°到90°之间")
    @Max(value = 90,message = "纬度不在-90°到90°之间")
    private String market_mall_latitude;
    @Length(min = 10,max = 50,message = "商场地址字数在10-50字之间")
    private String market_mall_address;
    @Min(value = 0,message = "联系QQ只含数字")
    @Length(min = 6,max = 15,message = "联系QQ位数在6-15位之间")
    private String market_mall_qq;
    @Min(value = 0,message = "联系电话只含数字")
    @Length(min = 11,max = 11,message = "联系电话长度为11位")
    private String market_mall_phone;
    @Length(min = 1,max = 10,message = "商场名字字数在1-10字之间")
    private String market_mall_name;
}
